//
//  focusItem.m
//  SoundPill
//
//  Created by 宋鹏鹏 on 15/3/25.
//  Copyright (c) 2015年 宋旭东. All rights reserved.
//

#import "focusItem.h"

#define kTitleScale 0.7

@implementation focusItem

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
        self.titleLabel.textAlignment = NSTextAlignmentLeft;
        self.titleLabel.font = [UIFont systemFontOfSize:12.0f];
        self.backgroundColor = [UIColor whiteColor];
        self.imageView.contentMode = UIViewContentModeScaleAspectFit;
    }
    return self;
}

- (CGRect)titleRectForContentRect:(CGRect)contentRect
{
    CGFloat h = contentRect.size.height;
    CGFloat w = 117 ;
    return CGRectMake(0, 0, w, h);
}

- (CGRect)imageRectForContentRect:(CGRect)contentRect
{
//    CGFloat h = contentRect.size.height*0.7;
//    CGFloat w = contentRect.size.width*0.17;
    
    return CGRectMake(contentRect.size.width*0.77, contentRect.size.height*0.15, 0, 0);
}



@end
